package com.jeesite.modules.jdProduct.service;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.CrudService;
import com.jeesite.modules.jdProduct.dao.DelayOrderDao;
import com.jeesite.modules.jdProduct.entity.DelayOrder;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @ClassName DelayOrderService
 * @description
 * @Author ouyang
 * @Date 2019/6/12 17:44
 **/
@Service
@Transactional(readOnly = true)
public class DelayOrderService  extends CrudService<DelayOrderDao, DelayOrder> {

    @Override
    public List<DelayOrder> findList(DelayOrder entity) {
        return super.findList(entity);
    }

    @Override
    public Page<DelayOrder> findPage(Page<DelayOrder> page, DelayOrder entity) {
        return super.findPage(page, entity);
    }

    @Override
    public long findCount(DelayOrder entity) {
        return super.findCount(entity);
    }

    @Override
    public void addDataScopeFilter(DelayOrder entity, String ctrlPermi) {
        super.addDataScopeFilter(entity, ctrlPermi);
    }

    @Override
    public DelayOrder get(DelayOrder entity) {
        return super.get(entity);
    }

    @Override
    protected DelayOrder newEntity(String id) {
        return super.newEntity(id);
    }

    @Override
    public DelayOrder get(String id) {
        return super.get(id);
    }

    @Override
    protected DelayOrder newEntity() {
        return super.newEntity();
    }

    @Override
    public void genIdAndValid(DelayOrder entity, String viewCode, String message) {
        super.genIdAndValid(entity, viewCode, message);
    }

    @Override
    public void genId(DelayOrder entity, String viewCode) {
        super.genId(entity, viewCode);
    }

    @Override
    public void addDataScopeFilter(DelayOrder entity) {
        super.addDataScopeFilter(entity);
    }

    @Override
    public DelayOrder get(Class<?>[] pkClass, Object[] pkValue, boolean isNewRecord) {
        return super.get(pkClass, pkValue, isNewRecord);
    }

    @Override
    public DelayOrder get(String id, boolean isNewRecord) {
        return super.get(id, isNewRecord);
    }

    @Override
    public void genIdAndValid(DelayOrder entity, String viewCode) {
        super.genIdAndValid(entity, viewCode);
    }

    public List<DelayOrder> findByStatus(DelayOrder delayOrder) {
        return dao.findByStatus(delayOrder);
    }

    public DelayOrder findByDelayOrder(DelayOrder delayOrder) {
        return dao.findByDelayOrder(delayOrder);
    }
}
